﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XZen.Cdn.Client
{
    public class Contents
    {
        Dictionary<string, string> innerContents;
        string languagecode = LanguageCode.ENGLISH_LANG.ToString();
        internal Contents(Dictionary<string, string> keyValues, string languageCode)
        {
            innerContents = keyValues;
            languagecode = languageCode;
        }
        public string GetValueFromKey(string keyName)
        {
            var data = innerContents.Where(x => x.Key == keyName);
            return (data.Any()) ? data.FirstOrDefault().Value: string.Empty;
        }
    }
}
